package com.azier.kapacitor.script.method;

import com.azier.kapacitor.script.arg.SingleQuotesArg;

import java.util.ArrayList;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/
public class CodeField extends AbstractMethod {
    private static final String name = "codeField";
    /**
    CodeField is the name of the field in which to place the HTTP status code. If the HTTP request fails at a layer below HTTP, (i.e. rejected TCP connection), then the status code is set to 0.
    **/
    /**
    CodeField是放置HTTP状态代码的字段的名称。如果HTTP请求在HTTP之下的某个层失败（即TCP连接被拒绝），则状态码将设置为0。
    **/
    public CodeField(String httpPost) {
        super(new ArrayList<>(), name);
        //
        this.args.add(new SingleQuotesArg(httpPost));


    }
}
